# _*_ codeing : utf-8 _*_
# @Time : 2025-04-12
# @Author : wxp
# @File : 8 集合-不可变Set.py
# @Project : wxp-python
if __name__ == '__main__':
    immutable_set = frozenset([1, 2, 3, 3])
    # 输出: 不可变集合: frozenset({1, 2, 3})
    print("不可变集合:", immutable_set)
    print(f'immutable_set的类型为：{type(immutable_set)}')

    #批量拼接数据
    newSet = immutable_set.union({1, 8, 9})
    print(newSet)